//package com.itheima.aop;
//
//import lombok.extern.slf4j.Slf4j;
//import org.aspectj.lang.JoinPoint;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.*;
//import org.springframework.stereotype.Component;
//
//@Slf4j
//@Aspect
//@Component
//public class myAspect1 {
//
//    @Pointcut("execution(* com.itheima.service.impl.DeptServiceImpl.*(..))")
//    private void pt(){}
//
//    @Before("pt()")
//    public void Before(JoinPoint joinPoint) {
//        log.info("Before---");
//    }
//
//    @Around("pt()")
//    public Object Around(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
//        log.info("AroundBefore---");
//        Object proceed = proceedingJoinPoint.proceed();
//        log.info("AroundAfter");
//        return proceed;
//    }
//
//
//}
